package com.komunide.abracadabra;

import java.util.List;

import android.app.Activity;
import android.graphics.Region;
import android.os.Bundle;
import android.view.Menu;
import android.widget.ImageView;
import android.widget.LinearLayout;

import com.larvalabs.svgandroid.SVG;
import com.larvalabs.svgandroid.SVGParser;

public class Coloriage extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // Create a LinearLayout in which to add the ImageView
        LinearLayout layout = new LinearLayout(this);
        
        SVG svg = SVGParser.getSVGFromResource(getResources(), R.drawable.eglise3);        
        layout.addView(new ColoriageView(this, svg));
        
        //setContentView(imageView);
        setContentView(layout);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_coloriage, menu);
        return true;
    }
}
